<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLogKicks extends Migration
{
    /**踢人日志表
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('log_kicks', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('server_id')->comment('游戏服id');
            $table->bigInteger('player_id', false)->comment('玩家id');
            $table->string('player_name', 50)->comment('玩家名');
            $table->string('admin_name', 50)->comment('管理员名');
            $table->string('client_ip', 50)->comment('客服端ip');
            $table->tinyInteger('status')->default(0)->comment('0禁止，1解禁');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('log_kicks');
    }
}
